<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['goods']=array (
  'columns' =>
  array (
    'id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => app::get('tbdata')->_('商品自增id'),
      'width' => 110,
      'editable' => false,
	  'order'=>1,
      'in_list' => false,
    ),
    'product_id' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('淘宝产品id'),
      'width' => 110,
      'required' => true,
      'editable' => false,
      'in_list' => true,
	  'filtertype'=>'number',
      'filterdefault' => true,
    ),
    'cid' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('分类ID'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
	  'filtertype'=>'number',
      'filterdefault' => true,
      'default_in_list' => true,
    ),
    'created' =>
    array (
      'type' => 'time',
      'label' => app::get('tbdata')->_('创建时间'),
      'width' => 110,
      'required' => true,
	  'default'=>0,
      'editable' => false,
      'in_list' => true,
    ),
    'goods_name' =>
    array (
      'type' => 'varchar(300)',
      'default' => '',
      'label' => app::get('tbdata')->_('商品名称'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
    ),
    'keyword' =>
    array (
      'type' => 'varchar(100)',
      'default' => '',
      'label' => app::get('tbdata')->_('关键属性'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
    ),
    'platform' =>
    array (
      'type' => 'varchar(100)',
      'default' => '',
      'label' => app::get('tbdata')->_('平台'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
      'filterdefault' => true,
    ),
    'merchant' =>
    array (
      'type' => 'varchar(100)',
      'default' => '',
      'label' => app::get('tbdata')->_('商家'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
      'filterdefault' => true,
    ),
    'click_url' =>
    array (
      'type' => 'varchar(500)',
      'default' => '',
      'label' => app::get('tbdata')->_('商品购买链接'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
	  'filtertype'=>'number',
      'filterdefault' => true,
    ),
    'price' =>
    array (
      'type' => 'decimal(9,2)',
      'default' => '0',
      'label' => app::get('tbdata')->_('价格'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'label' => app::get('tbdata')->_('更新时间'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
	  'default'=>0,
      'filtertype' => 'yes',
      'filterdefault' => true,
      'default_in_list' => true,
    ),
    'addon' =>
    array (
      'type' => 'serialize',
      'default' => '',
      'label' => app::get('tbdata')->_('附加信息'),
      'width' => 50,
      'editable' => false,
      'in_list' => true,
	  'order'=>1,
      'default_in_list' => true,
    ),
  ),
  'comment' => app::get('tbdata')->_('类别属性值表'),
  'index' =>
  array (
    'ind_product_id' =>
    array (
      'columns' =>
      array (
        0 => 'product_id',
      ),
    ),
  ),
  'version' => '$Rev: 41329 $',
);
